package com.ruoyi.webSocket;


/**
 * @author zizige
 * @date 2025年08月20日 10:53
 */

public class DeviceMessage {
    private String type;
    private String devNumber;
    private long timestamp;
    private Object data;


    public DeviceMessage(String type, String devNumber, Object data) {
        this.type = type;
        this.devNumber = devNumber;
        this.data = data;
        this.timestamp = System.currentTimeMillis();
    }

    // Getters and Setters
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }
    public String getDevNumber() { return devNumber; }
    public void setDevNumber(String devNumber) { this.devNumber = devNumber; }
    public long getTimestamp() { return timestamp; }
    public void setTimestamp(long timestamp) { this.timestamp = timestamp; }
    public Object getData() { return data; }
    public void setData(Object data) { this.data = data; }
}
